package com.lz.gmall.rabbit.constant;

/**
 * @author 郭运龙
 */
public interface RabbitConstant {

    public static final String ORDER_EXCHANGE_NAME = "order.exchange" ;

    public static final String ORDER_QUEUE_NAME = "order.queue" ;

    public static final String DELAY_QUEUE_NAME = "delay.queue" ;

    public static final String DELAY_QUEUE_ROUTING_KEY_NAME = "delay.info" ;

    public static final String ORDER_QUEUE_ROUTING_KEY_NAME = "order.info" ;

    public static final int ORDER_QUEUE_TTL = 1000 * 60 * 3;

    public static final String PAYED_QUEUE_NAME = "order.payed.queue";

    public static final String PAYED_QUEUE_ROUTING_KEY_NAME = "order.payed";

    /**
     * 扣减库存的交换机的名称
     */
    public static final String EXCHANGE_DIRECT_WARE_STOCK = "exchange.direct.ware.stock";

    /**
     * 扣减库存的路由键
     */
    public static final String ROUTING_WARE_STOCK = "ware.stock";

    /**
     * 扣减库存完之后，修改订单状态的交换机
     */
    public static final String EXCHANGE_DIRECT_WARE_ORDER = "exchange.direct.ware.order";

    /**
     * 扣减库存完之后，修改订单状态的队列
     */
    public static final String ROUTING_WARE_ORDER = "ware.order";

    /**
     * 扣减库存完之后，修改订单状态的路由键
     */
    public static final String QUEUE_WARE_ORDER = "queue.ware.order";


}
